﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.Model.Category>" %>
<%@ Import Namespace="ChoViet.Lib.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Chi tiết chuyên mục
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<%if(ViewData["MessageInfo"]==null){ %>
	<fieldset>
		<legend>Chi ti?t</legend>
		<table class="admintable">
			<tbody>
			<tr>
				<td class="key">Icon đại diện</td>
				<td><img src="<%=Model.ImagePath %>" title="" alt="" /></td>
			</tr>
			<tr>
				<td class="key">Tên chuyên mục</td>
				<td><%= Html.Encode(Model.Name) %></td>
			</tr>
			<tr>
				<td class="key">Tên ngắn</td>
				<td><%= Html.Encode(Model.ShortName) %></td>
			</tr>
			<tr>
				<td class="key">Mô tả</td>
				<td><%= Html.Encode(Model.Description) %></td>
			</tr>
			<tr>
				<td class="key">Cập nhật</td>
				<td><%= Model.ModifyDate != null ? Html.Encode(String.Format("{0:dd/MM/yyyy HH:mm}", Model.ModifyDate.Value)) : Html.Encode(String.Format("{0:dd/MM/yyyy HH:mm}", Model.CreatedDate.Value))%></td>
			</tr></tbody>
		 </table>
	 </fieldset>
<% } %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <%= Html.Toolbar("Thêm mới", "/Category/CreateCms/", "new")%>
	<%= Html.Toolbar("Sửa", string.Format("/Category/EditCms/{0}", Model.ID), "edit")%>
	<%= Html.Toolbar("Xóa", string.Format("/Category/DeleteCms/{0}", Model.ID), "delete")%>
	<%= Html.Toolbar("Quay lại", "/Category/IndexCms/", "back")%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
Chi tiết chuyên mục
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
<%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
